<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../include/tag.jsp" %>
<%@ taglib prefix="defaultValue" uri="http://www.tongxingzhe.cn/defaultValue" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <title>统计报表</title>
    <link rel="stylesheet" href="${ctx}/css/common/list.css">
    <link rel="stylesheet" href="${ctx}/css/common/table.css">
    <link rel="stylesheet" href="${ctx}/css/ui/crowdfund/data_table.css">
    <%@include file="../include/commonFile.jsp" %>
</head>
<body>
<!--头部-->
<%@include file="../include/header.jsp" %>
<div class="index-outside">
    <%@include file="../include/sidebar.jsp" %>
    <!--内容-->
    <section>
        <div class="section-main">
            <div class="main-box">
                <div class="major-col">
                    <table class="layui-table self-table major-table">
                        <colgroup>
                            <col width="100px">
                            <col width="145px">
                        </colgroup>
                        <thead>
                        <tr>
                            <th rowspan="2" height="119px">类型</th>
                            <th rowspan="2" height="119px">细项</th>
                        </tr>
                        </thead>
                        <tbody>
                        <%--累计数据--%>
                        <tr>
                            <td rowspan="6">累计数据</td>
                            <td>累计报名人数</td>
                        </tr>
                        <tr>
                            <td>累计成功人数</td>
                        </tr>
                        <tr>
                            <td>累计人数成功率</td>
                        </tr>
                        <tr>
                            <td>累计众筹金额</td>
                        </tr>
                        <tr>
                            <td>累计成功金额</td>
                        </tr>
                        <tr>
                            <td>累计金额成功率</td>
                        </tr>

                        <%--新增数据--%>
                        <tr>
                            <td rowspan="6">新增数据</td>
                            <td>新增报名人数</td>
                        </tr>
                        <tr>
                            <td>新增成功人数</td>
                        </tr>
                        <tr>
                            <td>新增人数成功率</td>
                        </tr>
                        <tr>
                            <td>新增报名金额</td>
                        </tr>
                        <tr>
                            <td>新增成功金额</td>
                        </tr>
                        <tr>
                            <td>新增金额成功率</td>
                        </tr>

                        <%--三天内数据--%>
                        <tr>
                            <td rowspan="6">本周报名人员各自3天内数据统计</td>
                            <td>新增报名人数</td>
                        </tr>
                        <tr>
                            <td>新增成功人数</td>
                        </tr>
                        <tr>
                            <td>新增人数成功率</td>
                        </tr>
                        <tr>
                            <td>新增报名金额</td>
                        </tr>
                        <tr>
                            <td>新增成功金额</td>
                        </tr>
                        <tr>
                            <td>新增金额成功率</td>
                        </tr>

                        <%--7天内数据--%>
                        <tr>
                            <td rowspan="6">本周报名人员各自7天内数据统计</td>
                            <td>新增报名人数</td>
                        </tr>
                        <tr>
                            <td>新增成功人数</td>
                        </tr>
                        <tr>
                            <td>新增人数成功率</td>
                        </tr>
                        <tr>
                            <td>新增报名金额</td>
                        </tr>
                        <tr>
                            <td>新增成功金额</td>
                        </tr>
                        <tr>
                            <td>新增金额成功率</td>
                        </tr>


                        <%--十五天内数据--%>
                        <tr>
                            <td rowspan="6">本周报名人员各自15天内数据统计</td>
                            <td>新增报名人数</td>
                        </tr>
                        <tr>
                            <td>新增成功人数</td>
                        </tr>
                        <tr>
                            <td>新增人数成功率</td>
                        </tr>
                        <tr>
                            <td>新增报名金额</td>
                        </tr>
                        <tr>
                            <td>新增成功金额</td>
                        </tr>
                        <tr>
                            <td>新增金额成功率</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <div class="major-r">
                    <table class="layui-table self-table">
                        <colgroup>
                            <c:forEach var="month" items="${accumulateList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <col width="110px">
                                </c:forEach>
                            </c:forEach>
                            <col width="110px">
                        </colgroup>
                        <thead>
                        <tr>
                            <c:forEach var="month" items="${accumulateList}">
                                <th rowspan="1" height="20px" colspan="${month.detailCountTableColumnList.size()}">${month.month}</th>
                            </c:forEach>
                            <th rowspan="2" height="119px">汇总</th>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${accumulateList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <th rowspan="1" height="80px">${week.title}</th>
                                </c:forEach>
                            </c:forEach>
                        </tr>
                        </thead>
                        <tbody>
                        <%--累计数据--%>
                        <tr>
                            <c:forEach var="month" items="${accumulateList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.applyNum}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.applyNum}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${accumulateCollect.applyNum}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${accumulateList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successNum}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successNum}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${accumulateCollect.successNum}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${accumulateList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successNumRate}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successNumRate}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${accumulateCollect.successNumRate}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${accumulateList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.money}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.money}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${accumulateCollect.money}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${accumulateList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successMoney}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successMoney}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${accumulateCollect.successMoney}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${accumulateList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successMoneyRate}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successMoneyRate}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${accumulateCollect.successMoneyRate}</td>
                        </tr>

                        <%--新增数据--%>
                        <tr>
                            <c:forEach var="month" items="${appendList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.applyNum}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.applyNum}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${appendCollect.applyNum}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${appendList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successNum}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successNum}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${appendCollect.successNum}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${appendList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successNumRate}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successNumRate}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${appendCollect.successNumRate}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${appendList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.money}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.money}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${appendCollect.money}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${appendList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successMoney}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successMoney}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${appendCollect.successMoney}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${appendList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successMoneyRate}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successMoneyRate}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${appendCollect.successMoneyRate}</td>
                        </tr>

                        <%--三天内数据--%>
                        <tr>
                            <c:forEach var="month" items="${threeDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.applyNum}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.applyNum}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${threeDayCollect.applyNum}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${threeDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successNum}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successNum}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${threeDayCollect.successNum}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${threeDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successNumRate}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successNumRate}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${threeDayCollect.successNumRate}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${threeDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.money}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.money}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${threeDayCollect.money}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${threeDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successMoney}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successMoney}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${threeDayCollect.successMoney}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${threeDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successMoneyRate}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successMoneyRate}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${threeDayCollect.successMoneyRate}</td>
                        </tr>

                        <%--7天内数据--%>
                        <tr>
                            <c:forEach var="month" items="${sevenDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.applyNum}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.applyNum}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${sevenDayCollect.applyNum}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${sevenDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successNum}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successNum}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${sevenDayCollect.successNum}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${sevenDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successNumRate}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successNumRate}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${sevenDayCollect.successNumRate}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${sevenDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.money}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.money}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${sevenDayCollect.money}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${sevenDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successMoney}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successMoney}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${sevenDayCollect.successMoney}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${sevenDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successMoneyRate}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successMoneyRate}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${sevenDayCollect.successMoneyRate}</td>
                        </tr>

                        <%--十五天内数据--%>
                        <tr>
                            <c:forEach var="month" items="${fifteenDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.applyNum}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.applyNum}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${fifteenDayCollect.applyNum}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${fifteenDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successNum}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successNum}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${fifteenDayCollect.successNum}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${fifteenDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successNumRate}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successNumRate}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${fifteenDayCollect.successNumRate}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${fifteenDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.money}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.money}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${fifteenDayCollect.money}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${fifteenDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successMoney}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successMoney}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${fifteenDayCollect.successMoney}</td>
                        </tr>
                        <tr>
                            <c:forEach var="month" items="${fifteenDayList}">
                                <c:forEach var="week" items="${month.detailCountTableColumnList}">
                                    <td rowspan="1">
                                        <c:choose>
                                            <c:when test="${empty week.projectDetailCountOutput.successMoneyRate}">${defaultValue:nullValue()}</c:when>
                                            <c:otherwise>${week.projectDetailCountOutput.successMoneyRate}</c:otherwise>
                                        </c:choose>
                                    </td>
                                </c:forEach>
                            </c:forEach>
                            <td>${fifteenDayCollect.successMoneyRate}</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </section>
</div>

<script type="text/javascript" src="${ctx}/script/common/table_option.js"></script>
<script type="text/javascript" src="${ctx}/script/common/list.js"></script>

<script type="text/javascript">
    txz.initHeader({
        nav: [{
            name: '众筹主题管理',
            href:'${ctx}/crowdfund/event/list.do',
        },{
            name: '${event.name}',
            curr: true
        },{
            name: '统计报表',
            curr: true
        }]
    });
    $('.main-box').scroll(function () {
        $('.major-col').css('left', $(this).scrollLeft()+'px');
    });
</script>
</body>
</html>